package com.kongxx.struts2study.login.jcaptcha;

import com.octo.captcha.service.captchastore.FastHashMapCaptchaStore;
import com.octo.captcha.service.image.DefaultManageableImageCaptchaService;
import com.octo.captcha.service.image.ImageCaptchaService;

public class MyCaptchaService {

	private static ImageCaptchaService imageCaptchaService;

	static {
		imageCaptchaService = new DefaultManageableImageCaptchaService(
			new FastHashMapCaptchaStore(), new MyImageCaptchaEngine(),
			180, 100000, 75000);
	}

	public static ImageCaptchaService getImageCaptchaService(){
		return imageCaptchaService;
	}
}
